Skip to content

fix: build with Xcode 10 may fail for missing plugins...xcconfig file #3913

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 20, 2018

Conversation

rosen-vladimirov
Copy link
Contributor

In the iOS Project template we have include for plugins-debug.xcconfig (or plugins-release.xcconfig when building in release mode). CLI should produce such file, but it does not do it when the project does not have build.xcconfig in its App_Resources and neither of the plugins have such file. With previous Xcode versions, this case was leading to warnings in the output, however they are errors now and the build fails.
Fix this by adding an empty file in such case.

PR Checklist

What is the current behavior?

Build fails for iOS in case the following circumstances are fulfilled:

  • Xcode 10 is used
  • application does not have build.xcconfig file in App_Resources/iOS/build.xcconfig
  • none of the plugins have build.xcconfig file in <plugin dir>/platforms/ios/build.xcconfig

What is the new behavior?

The application can be build in case the mentioned circumstances are fulfilled.

Fixes #3912

@@ -778,7 +778,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
this.$fs.deleteDirectory(this.getAppResourcesDestinationDirectoryPath(projectData));
}

public async processConfigurationFilesFromAppResources(release: boolean, projectData: IProjectData): Promise<void> {
public async processConfigurationFilesFromAppResources(release: boolean, projectData: IProjectData): Promise<void> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing space?

@dtopuzov
Copy link
Contributor

test

@SvetoslavTsenov
Copy link

SvetoslavTsenov commented Sep 19, 2018

@rosen-vladimirov, it looks like the fix works according to our CI tests. Yet we still need time to setup the PR scripts related to CLI package hook. Also CLI-e2e hook is the old one and should be ignored for now.

In the iOS Project template we have include for plugins-debug.xcconfig (or plugins-release.xcconfig when building in release mode). CLI should produce such file, but it does not do it when the project does not have build.xcconfig in its App_Resources and neither of the plugins have such file. With previous Xcode versions, this case was leading to warnings in the output, however they are errors now and the build fails.
Fix this by adding an empty file in such case.
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/fix-xcode10-plugins-xcconfig branch from 8ab5aae to bfd5b3f Compare September 20, 2018 06:55
@rosen-vladimirov rosen-vladimirov merged commit 8169878 into master Sep 20, 2018
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-xcode10-plugins-xcconfig branch September 20, 2018 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants